<%--
  User: dw
  Date: 2019/12/9
  Time: 16:32
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改部门信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all">
</head>
<body>
<form class="layui-form" action="" id="updateDep">
    <div class="layui-form-item">
        <label class="layui-form-label">部门编号</label>
        <div class="layui-input-block">
            <input type="text" name="depId" required  lay-verify="required" autocomplete="off" class="layui-input" readonly >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">部门名称</label>
        <div class="layui-input-block">
            <input type="text" name="depName" required  lay-verify="required" placeholder="请输入部门名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">负责人工号</label>
        <div class="layui-input-block">
            <input type="text" name="depleader" required  lay-verify="required" placeholder="部门主管工号" autocomplete="off" class="layui-input">
        </div>
    </div>
</form>

</body>
<script src="../../../layuiadmin/layui/layui.js"></script>
<script>
    layui.use(['layer','form','laydate'],function(){
        var layer = layui.layer;
        var laydate = layui.laydate;
        var  $ = layui.jquery;
        var form = layui.form;
        form.render();

    });

    //窗体传值
    function child(data) {
        layui.use(['layer','form'],function() {
            var layer = layui.layer;
            var $ = layui.jquery;
            var form = layui.form;
            $("input[name= 'depId']").val(data.depId);
            $("input[name= 'depName']").val(data.depName);
            $("input[name= 'depleader']").val(data.depleader);
        });
    }


</script>
</html>
